package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.CustomerReturnListDao;
import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.CustomerReturnList;
import com.atguigu.jxc.service.CustomerReturnListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * description
 *
 * @author SZ
 * @date 2022/9/26/9:49
 */
@Service
public class CustomerReturnListServiceImpl implements CustomerReturnListService {
    @Autowired
    private CustomerReturnListDao customerReturnListDao;

    @Override
    public void save(CustomerReturnList customerReturnList) {
        customerReturnListDao.save(customerReturnList);
    }

    @Override
    public List<CustomerReturnList> getList(String returnNumber, Integer customerId, Integer state, String sTime, String eTime) {
        return customerReturnListDao.selectList(returnNumber,customerId,state,sTime,eTime);
    }

    @Override
    public void deleteById(Integer customerReturnListId) {
        customerReturnListDao.deleteById(customerReturnListId);
    }


}
